package com.gqb.collection;

public class test {
	public static void main(String[] args) {
		MyLinkedList<Integer> myLinkedList=new MyLinkedList<Integer>();
		myLinkedList.add(1);
		myLinkedList.add(2);
		myLinkedList.add(3);
		myLinkedList.add(3, 4);
		System.out.println(myLinkedList.getFirst());
		System.out.println(myLinkedList.get(3));
		System.out.println(myLinkedList.toString());
		System.out.println("删除低3个节点"+myLinkedList.remove(3)+"——"+myLinkedList.toString());
		System.out.println("删除第1个节点"+myLinkedList.remove(1)+"——"+myLinkedList.toString());
		System.out.println("删除第1个节点"+myLinkedList.remove(1)+"——"+myLinkedList.toString());
		System.out.println("删除第1个节点"+myLinkedList.remove(1)+"——"+myLinkedList.toString());
//		System.out.println(Infix2Prefix.infixTrun2Prefix("1+((2+3)×4)-5"));
		System.out.println(Infix2Prefix.infix2Suffix("1+((2+3)×4)-5"));
		
		/*byte b1=1,b2=2,b3,b6; 
		final byte b4=4,b5=6; 
		b6=b4+b5; 
		b3=(b1+b2); //编译报错
		System.out.println(b3+b6);*/
	} 
}
